<template>
  <a @click="linkTo('/initMap')">地图初始化</a>
</template>

<script>
import { defineComponent } from "@vue/runtime-core";
import {  useRouter } from "vue-router";

export default defineComponent({
  setup() {
    const router = useRouter();
    function linkTo(route) {
      router.push({
        path: route,
      });
    }

    return {
      linkTo,
    };
  },
});
</script>

<style>
</style>
